import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
class Privacy extends StatefulWidget {
  String url;
  Privacy(this.url);
  @override
  _PrivacyState createState() => _PrivacyState();
}

class _PrivacyState extends State<Privacy> {
  @override
  Widget build(BuildContext context) {
    return SafeArea(
        child: Stack(
          children: <Widget>[
            WebView(
              userAgent: "flutter",
              initialUrl: widget.url,


              javascriptMode: JavascriptMode.unrestricted,
              onPageStarted: (v) {
                print("currentPage>>>${v}");
              },
              onPageFinished: (v) {

              },
              onWebViewCreated: (WebViewController web) {

              },
              navigationDelegate: (request) {
                var v = request.url;



                return NavigationDecision.navigate;
              },

            ),
          ],
        ));
  }
}
